<template>
  <div class="ball_machine-control">
    <div class="row">
      <div class="ball">
        <div class="triangle transformAngle"></div>
        <div class="triangle transformAngleTop"></div>
        <div class="triangle transformAngleTopRight"></div>
        <div class="triangle transformAngleMidLeft"></div>
      </div>
      <div class="ball_right">
        <div class="row">
          <div class="name">画框:</div>
          <div class="value">
            <button class="button" style="margin-right: 25px">
              <i class="el-icon-edit"></i>
            </button>
          </div>
        </div>
        <div class="row">
          <div class="name">步长:</div>
          <div class="value">
            <el-select
              class="wait-list__filter-item"
              v-model="step"
              placeholder="请选择设备状态"
              style="margin-right: 30px"
            >
              <el-option
                v-for="item in 8"
                :key="item"
                :label="item"
                :value="item"
              >
              </el-option>
            </el-select>
          </div>
        </div>
      </div>
    </div>
    <div class="adderAndSubtractor">
      <div class="row">
        <div class="leftIcon">
          <i class="el-icon-circle-plus-outline"></i>
        </div>
        变倍
        <div class="rightIcon">
          <i class="el-icon-remove-outline"></i>
        </div>
      </div>
      <div class="row">
        <div class="leftIcon"><i class="el-icon-circle-plus-outline"></i></div>
        变焦
        <div class="rightIcon"><i class="el-icon-remove-outline"></i></div>
      </div>
      <div class="row">
        <div class="leftIcon"><i class="el-icon-circle-plus-outline"></i></div>
        光圈
        <div class="rightIcon"><i class="el-icon-remove-outline"></i></div>
      </div>
    </div>
    <div class="presetPoint">
      预设点
      <el-input placeholder="" v-model="point"> </el-input>
      <button class="button" @click="save">添加预设点</button>
    </div>
    <div class="presetPoint_menage">
      <div
        class="row"
        v-for="item in 5"
        :key="item"
        :label="item"
        :value="item"
      >
        {{ item }}
      </div>
      <div
        class="row"
        @click="showMore"
      >
        加载更多…
      </div>
    </div>
  </div>
</template>

<script>
import request from "@/utils/request";


export default {

  props: {
    // title: {
    //   type: String
    // },
  },
  data() {
    return {
      step: "",
      point: "",
    };
  },
  mounted() {
    this.loadData();
  },
  methods: {
    loadData() {
      //  request({
      //   url:
      //     "/api/edge/v1/camera/query"
      // })
      //   .then((val) => {
        
         
      //   })
      //   .catch();
    },
    save() {},
    showMore(){
      
    }
  },
  created() {},
};
</script>

<style scoped  lang="scss">
.ball_machine-control {
  padding-left: 30px;
  .row {
    display: flex;
    align-items: center;
  }
  .button {
    height: 30px;
    line-height: 30px;
    padding: 0 30px;
    color: #1996fa;
    background: #e6f1fc;
    border: 1px solid #d0e7fe;
    border-radius: 5px;
  }
  .ball {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    border: 1px solid #ccc;
    position: relative;
    margin-right: 20px;

    .triangle {
      width: 0;
      height: 0;
      border: 10px solid transparent;
      border-top-color: #000;
      border-bottom: none;
      position: absolute;
    }
    .transformAngle {
      top: 10px;
      left: calc(50% - 10px);

      transform: rotate(180deg);
    }
    .transformAngleTop {
      top: calc(50% - 5px);
      right: 5px;
      transform: rotate(-90deg);
    }
    .transformAngleTopRight {
      top: calc(50% - 5px);
      left: 5px;
      transform: rotate(90deg);
    }
    .transformAngleMidLeft {
      bottom: 10px;
      left: calc(50% - 10px);
      transform: rotate(0deg);
    }
  }
  .ball_right {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    .name {
      margin-right: 15px;
      white-space: nowrap;
    }
  }
  .adderAndSubtractor {
    margin-top: 10px;
    padding-left: 0px;
    .row {
      padding: 7px 0;
    }
    .leftIcon,
    .rightIcon {
      font-size: 27px;
    }
    .leftIcon {
      margin-right: 10px;
    }
    .rightIcon {
      margin-left: 10px;
    }
  }
  .presetPoint {
    display: flex;
    white-space: nowrap;
    align-items: center;
    margin-top: 15px;
    .el-input {
      margin-left: 10px;
      margin-right: 10px;
    }
  }
  .presetPoint_menage {
    margin-top: 25px;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 500px;
    .row {
      height: 50px;
      padding: 5px 15px;
      border-bottom: 1px solid #ccc;
      &:last-child {
        border-bottom: 0;
      }
    }
  }
}
</style>
